<?php

require_once("Controller/UserController.php");
require_once("Controller/LoginController.php");
require_once("View/PageView.php");
require_once("Model/Database.php");
require_once("DBConfig.php");

class MasterController 
{
        public static function doControll() 
        {
        	$db = new Database();
        	$db->Connect(new DBConfig());
								
        	//Skapar instanser
			$lc = new LoginController();
			$uc = new UserController();
			$pw = new PageView();
                 
			$html = $lc->DoControll($db);   
			$html .= $uc->DoControll();
			  
			$db->Close();
			                                 
            return $pw->GetHTMLPage("Controller", $html);
        }
        
}

echo MasterController::doControll();

?>
